package com.xu.cloud.common.filter;

import com.xu.cloud.common.constant.OrderConstant;
import org.springframework.core.annotation.Order;
import org.springframework.web.cors.CorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;

import javax.servlet.annotation.WebFilter;

/**
 * 带序号的普通Servlet跨域过滤器
 *
 * @author xuguan
 * @since 2025/1/8
 * @see org.springframework.web.filter.CorsFilter
 * @see org.springframework.web.cors.reactive.CorsWebFilter
 */
@Order(OrderConstant.CORS_FILTER_ORDER)
@WebFilter(description = "带序号的普通Servlet跨域过滤器", urlPatterns = "/*")
public class OrderedCorsFilter extends CorsFilter {

    public OrderedCorsFilter(CorsConfigurationSource configSource) {
        super(configSource);
    }
}
